package MethodStudy;
/*
* 静态代码块执行*/
public class Teacher {
    Teacher(int i){
        System.out.println("老师"+i);
    }
    void buzhiHomework2(String homework){
        System.out.println("布置的作业是"+homework);
    }
    void buzhiHomework(String homework){
        Teacher T1=new Teacher(1);
        T1.buzhiHomework2(homework);
        this.buzhiHomework2("语文");

    }

    public static void main(String[] args) {
       Teacher T_main= new Teacher(2);
       T_main.buzhiHomework2("math");
        T_main.buzhiHomework("Chinese");//重点理解这个怎么输出的
    }
    //静态代码块
    static {
        System.out.println("咱是静态代码块");
    }
}
